package com.dyna.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhoucaiwang
 * @date 2024/3/30
 */
@Data
public class UserDto{

    @ApiModelProperty(value = "用户uuid")
    private Long userId;

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank(message = "用户姓名不能为空")
    @ApiModelProperty(value = "用户姓名")
    private String nickName;

    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别", notes = "0：男，1女，2未知")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "是否管理员")
    private Integer adminFlag;

}
